package cn.botter.subject.common.enums;

import lombok.Getter;

/**
 * 分类类型枚举
 */
@Getter
public enum CategoryTypeEnum {
    BIG_TYPE(1 , "岗位大类"),
    MOLL_TYPE(2,"大类下的分类");

    public int code;
    public String desc;

    CategoryTypeEnum(int code , String desc){
        this.code = code;
        this.desc = desc;
    }

    public static IsDeletedEnum getByCode(int codeVal){
        for(IsDeletedEnum resultCodeEnum :  IsDeletedEnum.values()){
            if (resultCodeEnum.code == codeVal){
                return resultCodeEnum;
            }
        }
        return null;
    }
}
